Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.ecm.platform.routing.dashboard.contentviews--contentViews

This contribution is part of XML component org.nuxeo.ecm.platform.routing.dashboard.contentviews inside nuxeo-platform-document-routing-dashboard-5.8.jar

Extension Point

Extension point contentViews of component ContentViewService.

Contributed Items

  • <contentView name="routing_tasks">
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <pattern>
              SELECT * FROM Document WHERE ecm:mixinType IN
              ('RoutingTask')
              AND ecm:isCheckedInVersion = 0 AND
              ecm:currentLifeCycleState !=
              'deleted' AND
              ecm:currentLifeCycleState != 'ended' AND ecm:isProxy = 0
            </pattern>
            <pageSize>20</pageSize>
          </coreQueryPageProvider>
    
          <showPageSizeSelector>true</showPageSizeSelector>
          <useGlobalPageSize>false</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
          </refresh>
          <cacheSize>0</cacheSize>
    
          <resultLayouts>
            <layout name="routing_task_listing"/>
          </resultLayouts>
    
          <selectionList>CURRENT_SELECTION</selectionList>
    
        </contentView>
  • <contentView name="user_open_tasks">
          <showTitle>false</showTitle>
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <whereClause docType="user_open_tasks_cv">
              <predicate operator="LIKE" parameter="nt:processId">
                <field name="task_processId" schema="user_open_tasks_cv"/>
              </predicate>
              <predicate operator="ILIKE" parameter="nt:name">
                <field name="task_name" schema="user_open_tasks_cv"/>
              </predicate>
              <predicate operator="BETWEEN" parameter="nt:dueDate">
                <field name="task_dueDate_min" schema="user_open_tasks_cv"/>
                <field name="task_dueDate_max" schema="user_open_tasks_cv"/>
              </predicate>
              <fixedPart>
                ecm:mixinType IN ('RoutingTask') AND
                ecm:isCheckedInVersion = 0 AND
                ecm:currentLifeCycleState =
                'opened' AND ecm:isProxy = 0
              </fixedPart>
            </whereClause>
            <pageSize>10</pageSize>
          </coreQueryPageProvider>
          <showFilterForm>true</showFilterForm>
          <showPageSizeSelector>false</showPageSizeSelector>
          <useGlobalPageSize>false</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentCreated</event>
            <event>workflowTaskCompleted</event>
            <event>workflowNewProcessStarted</event>
          </refresh>
          <cacheSize>10</cacheSize>
          <cacheKey>#{org.jboss.seam.core.manager.currentConversationId}
          </cacheKey>
          <searchLayout filterUnfolded="true" name="routing_user_open_task_search_layout"/>
          <resultLayouts>
            <layout iconPath="" name="routing_user_open_task_listing" showCSVExport="false" showPDFExport="false" title="" translateTitle=""/>
          </resultLayouts>
        </contentView>
  • <contentView name="task_target_documents">
          <title>label.document.routing.participatingDocuments</title>
          <translateTitle>true</translateTitle>
          <showTitle>true</showTitle>
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <parameter>#{routingTaskActions.getCurrentTask().getTargetDocumentsIds()}
            </parameter>
            <whereClause docType="Document">
              <fixedPart>
                ecm:uuid IN (?) AND ecm:isCheckedInVersion = 0 AND
                ecm:isProxy = 0
              </fixedPart>
            </whereClause>
            <pageSize>10</pageSize>
          </coreQueryPageProvider>
          <showFilterForm>false</showFilterForm>
          <showPageSizeSelector>false</showPageSizeSelector>
          <useGlobalPageSize>false</useGlobalPageSize>
          <refresh>
            <event>documentCreated</event>
            <event>documentChanged</event>
            <event>workflowTaskCompleted</event>
          </refresh>
          <cacheSize>10</cacheSize>
          <cacheKey>#{org.jboss.seam.core.manager.currentConversationId}
          </cacheKey>
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="task_related_documents_listing" showCSVExport="false" showPDFExport="false" showSyndicationLinks="false" title="document_listing" translateTitle="true"/>
          </resultLayouts>
        </contentView>

XML Source

<extension point="contentViews" target="org.nuxeo.ecm.platform.ui.web.ContentViewService">

    <contentView name="routing_tasks">

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <pattern>
          SELECT * FROM Document WHERE ecm:mixinType IN
          ('RoutingTask')
          AND ecm:isCheckedInVersion = 0 AND
          ecm:currentLifeCycleState !=
          'deleted' AND
          ecm:currentLifeCycleState != 'ended' AND ecm:isProxy = 0
        </pattern>
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>false</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
      </refresh>
      <cacheSize>0</cacheSize>

      <resultLayouts>
        <layout name="routing_task_listing"/>
      </resultLayouts>

      <selectionList>CURRENT_SELECTION</selectionList>

    </contentView>

    <contentView name="user_open_tasks">
      <showTitle>false</showTitle>
      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <whereClause docType="user_open_tasks_cv">
          <predicate operator="LIKE" parameter="nt:processId">
            <field name="task_processId" schema="user_open_tasks_cv"/>
          </predicate>
          <predicate operator="ILIKE" parameter="nt:name">
            <field name="task_name" schema="user_open_tasks_cv"/>
          </predicate>
          <predicate operator="BETWEEN" parameter="nt:dueDate">
            <field name="task_dueDate_min" schema="user_open_tasks_cv"/>
            <field name="task_dueDate_max" schema="user_open_tasks_cv"/>
          </predicate>
          <fixedPart>
            ecm:mixinType IN ('RoutingTask') AND
            ecm:isCheckedInVersion = 0 AND
            ecm:currentLifeCycleState =
            'opened' AND ecm:isProxy = 0
          </fixedPart>
        </whereClause>
        <pageSize>10</pageSize>
      </coreQueryPageProvider>
      <showFilterForm>true</showFilterForm>
      <showPageSizeSelector>false</showPageSizeSelector>
      <useGlobalPageSize>false</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentCreated</event>
        <event>workflowTaskCompleted</event>
        <event>workflowNewProcessStarted</event>
      </refresh>
      <cacheSize>10</cacheSize>
      <cacheKey>#{org.jboss.seam.core.manager.currentConversationId}
      </cacheKey>
      <searchLayout filterUnfolded="true" name="routing_user_open_task_search_layout"/>
      <resultLayouts>
        <layout iconPath="" name="routing_user_open_task_listing" showCSVExport="false" showPDFExport="false" title="" translateTitle=""/>
      </resultLayouts>
    </contentView>

    <contentView name="task_target_documents">
      <title>label.document.routing.participatingDocuments</title>
      <translateTitle>true</translateTitle>
      <showTitle>true</showTitle>
      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <parameter>#{routingTaskActions.getCurrentTask().getTargetDocumentsIds()}
        </parameter>
        <whereClause docType="Document">
          <fixedPart>
            ecm:uuid IN (?) AND ecm:isCheckedInVersion = 0 AND
            ecm:isProxy = 0
          </fixedPart>
        </whereClause>
        <pageSize>10</pageSize>
      </coreQueryPageProvider>
      <showFilterForm>false</showFilterForm>
      <showPageSizeSelector>false</showPageSizeSelector>
      <useGlobalPageSize>false</useGlobalPageSize>
      <refresh>
        <event>documentCreated</event>
        <event>documentChanged</event>
        <event>workflowTaskCompleted</event>
      </refresh>
      <cacheSize>10</cacheSize>
      <cacheKey>#{org.jboss.seam.core.manager.currentConversationId}
      </cacheKey>
      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="task_related_documents_listing" showCSVExport="false" showPDFExport="false" showSyndicationLinks="false" title="document_listing" translateTitle="true"/>
      </resultLayouts>
    </contentView>
  </extension>